package com.sunny.hp.common.util;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;




public class LogUtil {
    //LogUtil사용안하면
    //private Logger logger=Logger.getLogger(TestLog.class);
    //LogUtil사용하면
    //Logger logger = LogUtil.getLogger(CALL040DdataCmd.class);

    //private static Logger logger = LogUtil.getLogger(OtherClass.class);
    public static void init(String resource) {
        //DOMConfigurator.configure(resource);
        PropertyConfigurator.configure(resource);
    }

    public static Logger getLogger(Class c) {
        return Logger.getLogger(c);
    }
    public static Logger getLogger(String c) {
        return Logger.getLogger(c);
    }
}
